<template>
  <div class="nav">
    <span><img src="../assets/logo.png" alt="" /></span>
    <span>百杉管理系统</span>
    <span>
      <!-- <button>返回首页</button>
      <button>退出</button> -->
      <router-link to="/home/index" class="returnIndex">返回首页</router-link>
      <router-link to="/login" tag="button" class="back">退出</router-link>
    </span>
  </div>
</template>

<script>
export default {};
</script>

<style scoped>
.nav {
  width: 100%;
  height: 60px;
  background-color: #00ca79;
  padding: 0 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav span img {
  width: 40px;
  height: 40px;
  margin-top: 10px;
}
.returnIndex {
  color: #fff;
  margin-right: 10px;
}
.back {
  cursor: pointer;
  background-color: #ffb6c1;
  height: 40px;
  line-height: 40px;
  padding: 0 10px;
  border-radius: 2px;
  color: white;
  border: none;
}
span {
  text-align: center;
  height: 60px;
  line-height: 60px;
  color: #fff;
}
</style>